package com.chinafree.business.model.enumeration;

public enum PositionTypeEnum {

    EDUCATION(1, "技术"),
    TRANSLATION(2, "产品"),
    MANUFACTURE(3, "设计"),
    TRADE(4, "运营"),
    MARKET(5, "市场"),
    SALE(6,"销售"),
    ENAbLE(7,"职能"),
    GAME(8,"游戏");


    private Integer id;
    private String type;

    PositionTypeEnum(Integer id, String type) {
        this.id = id;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public static String getPositionTypeById(Integer id) {
        for (PositionTypeEnum positionTypeEnum : PositionTypeEnum.values()) {
            if (positionTypeEnum.getId().equals(id)) {
                return positionTypeEnum.getType();
            }
        }
        return null;
    }
}
